//
//  DVData.m
//  DVActivity
//
//  Created by pan Shiyu on 13-5-4.
//  Copyright (c) 2013年 pan Shiyu. All rights reserved.
//

#import "DVActData.h"
#import "DVActivity.h"

@implementation DVActData

+ (DVActData*)sharedActData {
    static DVActData *sharedActData;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        sharedActData = [[self alloc] init];
    });
    return sharedActData;
}

- (NSMutableArray*)actList {
    if (!_actList) {
        _actList = [NSMutableArray array];
        
        DVActivity *tmpAA = [DVActivity tmpCreate];
        
        DVActivity *tmpBB = [DVActivity tmpCreate];
        tmpBB.hasNews = YES;
        
        DVActivity *tmpCC = [DVActivity tmpCreate];
        tmpBB.type = DVActivityTypeUndealed;
        
        [_actList addObject:tmpAA];
        [_actList addObject:tmpBB];
        [_actList addObject:tmpCC];
        
    }
    return _actList;
}

@end
